<#include "../head.ftl">
<div class="page_title">数据字典管理</div>
<div class="button_bar">
    <button class="common_button" onclick="help('');">帮助</button>
    <button class="common_button" onclick="to('${base}/dictionary/queryBefore');">新建</button>
    <button class="common_button" onclick="document.forms[0].submit();">查询</button>
</div>
<form id="searchForm" action="${url}" method="get">
    <table class="query_form_table">
        <tr>
            <th>类别</th>
            <td><input type="text" name="type"/></td>
            <th>条目</th>
            <td><input type="text" name="items"/></td>
            <th>值</th>
            <td><input type="text" name="value"/></td>
        </tr>
    </table>
    <input type="hidden" id="number" name="number" value=""/>
</form>
<br />
<table class="data_list_table">
    <tr>
        <th>编号</th>
        <th>类别</th>
        <th>条目</th>
        <th>值</th>
        <th>是否可编辑</th>
        <th>操作</th>
    </tr>
	<#list page.content as dictionary>
	     <tr>
             <td class="list_data_number">${dictionary.id}</td>
             <td class="list_data_ltext">${dictionary.type}</td>
             <td class="list_data_text">${dictionary.items}</td>
             <td class="list_data_text">${dictionary.value}</td>
			 <#if dictionary.status == 0>
				 <td class="list_data_text">否</td>
				 <td class="list_data_op"></td>
			 <#else >
				 <td class="list_data_text">是</td>
				 <td class="list_data_op">
					 <a href="${base}/dictionary/queryBefore?id=${dictionary.id}">
                         <img title="编辑" src="${base}/images/bt_edit.gif" class="op_button" />
					 </a>
					 <a href="${base}/dictionary/delete?id=${dictionary.id}">
                         <img title="删除" src="${base}/images/bt_del.gif" class="op_button" />
					 </a>
				 </td>
			 </#if>
         </tr>
	</#list>
        <th colspan="6" class="pager">
<#include "../foot.ftl">